<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <meta http-equiv="X-UA-Compatible" content="ie=edge">
  <title>Document</title>
  <style>
    *{margin:0; padding:0;}
    .float{float:left;}
    .father{height:50px;}
    p{background:#f00;}
    .father >p{background:#ff0;}
    img{opacity:0.3;}
  </style>
</head>
<body>
  <div class="father">
    <div class="float">
    <img src="http://qn.yanmingweb.com/images/2.jpg" width="50" alt="">
      </div>
    
    <p>内内内内内内内内内内内内内内内内内内内内内内内内内内内</p>
  </div>
  <p>测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测测试测试测试测试测试测试测试测试测试</p>
</body>
</html>